﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Forms;

namespace SoundServant
{
    public class SSWindow : Window
    {
        public SSWindow()
            : base()
        {
            this.WindowStartupLocation = WindowStartupLocation.CenterOwner;

            if (SS.FullScreenMode)
            {
                this.WindowState = WindowState.Maximized;
                this.Topmost = true;
                this.WindowStyle = WindowStyle.None;
                this.AllowsTransparency = true;

            }
            else
            {
                this.WindowState = WindowState.Normal;
                this.WindowStyle = WindowStyle.SingleBorderWindow;
                this.Topmost = false;
                this.SizeToContent = SizeToContent.WidthAndHeight;
                this.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            }

            if (Options.Default.TouchScreenMode)
            {
                this.Cursor = System.Windows.Input.Cursors.None;
            }
        }

    }
}
